package pers.xiaojun.boot.module.system.dao.entity.dept;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import pers.xiaojun.boot.mybatis.core.enitiy.BaseEntity;
import pers.xiaojun.boot.tenant.core.db.TenantBaseEntity;

/**
 * 用户岗位实体
 *
 * @author xiaojun
 * @since 2025-11-02
 */
@EqualsAndHashCode(callSuper = true)
@TableName("system_user_post")
@Data
@Accessors(chain = true)
public class UserPostDO extends TenantBaseEntity {

    /**
     * 自增主键
     */
    @TableId
    private Long id;
    /**
     * 用户 ID
     */
    private Long userId;
    /**
     * 岗位 ID
     */
    private Long postId;

}
